﻿using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Inovout.Cloud.Identity.QuickStarts
{
    public class MvcApplication : HttpApplication
    {
        protected void Application_Start(object sender, EventArgs e)
        {
            var routes = RouteTable.Routes;
            RouteTable.Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            RouteTable.Routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });

            routes.MapRoute(
                    name: "GlobalDefault",
                    url: "{controller}/{action}/{id}",
                    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
                );


        }
    }
}
